﻿using Shop.Model.ActivityGoods;
using Shop.Model.DB;
using Shop.RemoteModel.ActivityGoods.Model;

namespace Shop.Repository
{
    public interface IActivityGoodsRepository : IShopBaseRepository<DBShopActivityGoods, long>
    {
        DBShopActivityGoods[] Adds (long activityId, ActivityGoods[] goods);
        GoodsPitchInActivity[] GetPitchInActivity (DateTime begin, DateTime end, long[] skuId);
        Result[] GetsByActivityId<Result> (long activityId) where Result : class, new();
        void SetPrice (long id, decimal price, bool isMust);
        void SetPrice (Dictionary<long, decimal> price);
        void Sync (DBShopActivityGoods[] adds, long[] dropId, long activityId, int num);
    }
}